<template>
      <el-result
        icon="warning"
        title="404"
        sub-title="海参扒拉出锅了~"
      >
        <template #extra>
          <el-button type="primary" @click="goHome">回到首页</el-button>
          <!-- <el-button type="primary" @click="$router.push("/")">回到首页</el-button> -->

        </template>
      </el-result>
</template>

<script setup>
import {useRouter} from 'vue-router'

const router = useRouter()

const goHome=()=>{
  router.push("/")
}
</script>